<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.ag.contactTree.*"%>
<%@page import="com.ag.zhh.vo.*"%>
<%	
				Dept dept=null;	
				Set<Contact> contacts = null;
				Object node= request.getAttribute("OATreenode");
				if(node!=null && !node.getClass().equals(String.class))
				 {
						 dept = (Dept)node;
						 contacts = dept.getContacts();
						 System.out.println("jpage: "+contacts.size());								
				 }
	
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title></title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link type="text/css" href="/ag/css/dialog/jquery.ui.all.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../zhh/css/formbg.css">
		<link rel="stylesheet" type="text/css" href="../zhh/css/utils.css">
		<!-- 
		<link rel="stylesheet" type="text/css" href="../zhh/css/displayOrNot.css">
		 -->
		<style type="text/css">
		
		#dept
		{
			padding-top:10px;
			padding-left:15px;
			font-size:20px;
			font-weight:100px;
			color:#0287CA;
			margin-bottom:10px;
		/*	background-color:#cccc99;	*/	
		
		}
		#dept div
		{
			margin:6px;
			float:left;
		}
		body
		{
			background-color:#dceffd;
		}
		
		</style>
		

	</head>

	<body>
	<div id="deptList" class="noned">
	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  	<tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="../tab/images/tab_03.gif" width="15" height="30" /></td>
        <td width="1101" background="../tab/images/tab_05.gif"><img src="../tab/images/311.gif" width="16" height="16" /> <span class="STYLE4">通信录</span></td>
        <td width="281" background="../tab/images/tab_05.gif"><table border="0" align="right" cellpadding="0" cellspacing="0">
            <tr>         
              <td width="60">             
              <table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center"><img src="../tab/images/001.gif" width="14" height="14" /></div></td>
                    <td class="STYLE1"></td>
                  </tr>
              </table>           
              </td>            
            </tr>
        </table></td>
        <td width="14"><img src="../tab/images/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="9" background="../tab/images/tab_12.gif">&nbsp;</td>
        <td bgcolor="#dceffd"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#84b1d3" >
       
          <tr>
            <td width="14%" height="26" background="../tab/images/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2 STYLE1">联系人</div></td>
            <td width="14%" height="26" background="../tab/images/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2 STYLE1">电话</div></td>
            <td width="14%" height="26" background="../tab/images/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2 STYLE1">手机</div></td>
            <td width="14%" height="26" background="../tab/images/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2 STYLE1">传真</div></td>
<%--            <td width="14%" height="26" background="../tab/images/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2 STYLE1">是否负责人</div></td>       --%>
          </tr>
  
            <%if(contacts != null && contacts.size() > 0)
             {
         		 for(Contact contact:contacts){
         		
         		  %>
         <!-- 输出联系方式 -->		  
          <tr>
            
            <td height="18" bgcolor="#FFFFFF"><div  ><%=contact.getCName()%></div></td>
            <td height="18" bgcolor="#FFFFFF"><div  ><%=contact.getCTel()%></div></td>
            <td height="18" bgcolor="#FFFFFF"><div  ><%= contact.getCCellphone()%></div></td>              
			<td height="18" bgcolor="#FFFFFF"><div  ><%= contact.getCFax()%></div></td>
<%--			<td height="18" bgcolor="#FFFFFF"><div  ><input type="checkbox" value="<%=contact.getCIsleader() %>" <%if(contact.getCIsleader()==1){%>  checked="checked" <%} %>></div></td>   --%>
          </tr>
         
          <%} }%>

          </table></td>
        <td width="9" background="../tab/images/tab_16.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="29"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="29"><img src="../tab/images/tab_20.gif" width="15" height="29" /></td>
        <td background="../tab/images/tab_21.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="25%" height="29" nowrap="nowrap"><span class="STYLE1"></span></td>
            <td width="75%" valign="top" class="STYLE1"><div align="right">
              <table width="90" height="20" border="0" cellpadding="0" cellspacing="0">
                <tr>

                </tr>
              </table>
            </div></td>
          </tr>
        </table></td>
        <td width="14"><img src="../tab/images/tab_22.gif" width="14" height="29" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</div>
		<script src="../js/jquery-1.4.2.min.js" type="text/javascript"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.core.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.widget.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.mouse.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.button.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.draggable.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.position.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.resizable.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.dialog.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.effects.core.js"></script>
		<script type="text/javascript"src="/ag/css/dialog/jquery.bgiframe-2.1.1.js"></script>
		<script type="text/javascript" src="../js/jquery.validate.pack.js"></script> 
		<script type="text/javascript" src="../zhh/js/maintain-validate.js"></script> 
		<script src="../zhh/js/maintain.js" type="text/javascript"></script>
		<!-- 
		<script src="../zhh/js/tab.js" type="text/javascript"></script>
		 -->	
	</body>
</html>


